<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/7/10
 * Time: 22:14
 */

//* Parse about any English textual datetime description into a Unix timestamp
$strtotime = strtotime( "2017-12-12" );
echo date("Y-m-d",$strtotime).PHP_EOL;
$strtotime = strtotime( "2017/12/12 12:12:12" );
echo date("Y-m-d H:i:s",$strtotime).PHP_EOL;
$strtotime = time();
echo idate("Y",$strtotime).PHP_EOL;
echo idate("m",$strtotime).PHP_EOL;
echo idate("d",$strtotime).PHP_EOL;
echo idate("H",$strtotime).PHP_EOL;
echo idate("i",$strtotime).PHP_EOL;
echo idate("s",$strtotime).PHP_EOL;

echo gmdate("Y-m-d H:i:s",time()).PHP_EOL;

echo mktime(22,12,11,7,10,2017).PHP_EOL;
echo gmmktime(22,12,11,7,10,2017).PHP_EOL;
if(checkdate(7,12,2017)){
	echo 'true';
}